<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改字段信息</title>
<link href="__ADMIN_PUBLIC__css/style.css" rel="stylesheet" type="text/css" />
<link href="__ADMIN_PUBLIC__css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__ADMIN_PUBLIC__js/jquery.js"></script>
<script type="text/javascript" src="__ADMIN_PUBLIC__js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="__ADMIN_PUBLIC__js/select-ui.min.js"></script>

  
<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
		width : 345			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 100
	});
});
</script>
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="{:U('Admin/Index/index/')}">首页</a></li>
    <li><a href="{:U('Admin/ContentModel/index/')}">模型管理</a></li>
    <li><a href="{:U('Admin/ContentModel/editField/')}">修改字段信息</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    
    <div id="usual1" class="usual"> 
    
    <div class="itab">
  	<ul> 
    <li><a href="#tab1" class="selected">修改字段信息</a></li> 
  	</ul>
    </div> 
  <form action="" method="post">
  	<div id="tab1" class="tabson">
    
    <div class="formtext"></div>
    
    <ul class="forminfo">
    <li><label>表单提示文字<b>*</b></label><input name="comment" type="text" class="dfinput" value="{$modelField.fieldName}" />（中文名称）</li>

     <li><label>字段名<b>*</b></label><div class="dfinputradio"> {$modelField.field}</div> </li>
   
     <li><label>最大长度<b>*</b></label><input name="mlength" type="text" class="dfinput" value="{$modelField['strLength']}"  style="width:100px;"/> (注:多行文本、长文本不需输入长度，金钱可自定义保留小数点,用逗号隔开即可,如“4,2" 4为小数点前，2为小数点后保留位数)</li>
   

    <li><label>字段类型<b>*</b></label>

                    <div class="dfinputradio"><input type="radio" name="mtype" value="char"  <if condition="$modelField.strType eq 'char'">checked='checked'</if>/>单行文本(char)</div>
                    <div class="dfinputradio"><input type="radio" name="mtype" value="mediumtext" <if condition="$modelField.strType eq 'mediumtext'">checked='checked'</if> />多行文本(mediumtext)</div>
                    <div class="dfinputradio"><input type="radio" name="mtype" value="text" <if condition="$modelField.strType eq 'text'">checked='checked'</if> />长文本(text)</div>
                    <div class="dfinputradio"><input type="radio" name="mtype" value="tinyint" <if condition="$modelField.strType eq 'tinyint'">checked='checked'</if> />整数类型(tinyint)</div>
                    <div class="dfinputradio"><input type="radio" name="mtype" value="smallint" <if condition="$modelField.strType eq 'smallint'">checked='checked'</if> />小数类型(smallint)</div>
                    <div class="dfinputradio"><input type="radio" name="mtype" value="int" <if condition="$modelField.strType eq 'int'">checked='checked'</if> />大整数值(int)</div>
                    <div class="dfinputradio"><input type="radio" name="mtype" value="enum" <if condition="$modelField.strType eq 'enum'">checked='checked'</if> />单选(enum)</div>
                    <div class="dfinputradio"><input type="radio" name="mtype" value="set" <if condition="$modelField.strType eq 'set'">checked='checked'</if> />多选(set)</div>
                    <div class="dfinputradio"><input type="radio" name="mtype" value="decimal" <if condition="$modelField.strType eq 'decimal'">checked='checked'</if> />金钱(decimal)</div> 
    
    </li>
    
    <li><label>表单类型<b>*</b></label>
    
    <div class="dfinputradio"><input type="radio" name="inputType" value="text"   <if condition="$modelField.Fword eq 'text'">checked='checked'</if> />文本框(text)</div>
                <div class="dfinputradio"><input type="radio" name="inputType" value="textarea"  <if condition="$modelField.Fword eq 'textarea'">checked='checked'</if>/>长文本编辑器(textarea)</div>
                <div class="dfinputradio"><input type="radio" name="inputType" value="file"  <if condition="$modelField.Fword eq 'file'">checked='checked'</if>/>附件类型(file)</div>
                <div class="dfinputradio"><input type="radio" name="inputType" value="option"  <if condition="$modelField.Fword eq 'option'">checked='checked'</if>/>下拉框(option)</div>
                <div class="dfinputradio"><input type="radio" name="inputType" value="radio"  <if condition="$modelField.Fword eq 'radio'">checked='checked'</if>/>单选组(radio)</div>
                <div class="dfinputradio"><input type="radio" name="inputType" value="checkbox"  <if condition="$modelField.Fword eq 'checkbox'">checked='checked'</if>/>多选框组(checkbox)</div>
    
    </li>
    
    </li>
    <li><label>默认值<b>*</b></label>
    

    <textarea  name="defaultValue"  cols="50" rows="6">{$modelField.defaultValue}</textarea>
    
    </li>
    <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="马上发布"/></li>
    </ul>
    
    </div>        
	</div> 
 </form>
	<script type="text/javascript"> 
      $("#usual1 ul").idTabs(); 
    </script>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
    
    
    
    
    
    </div>


</body>

</html>
